package kikt.tk.coordinatorlayoutdemo

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.TextView
import kotlinx.android.synthetic.main.activity_float.*

class FloatActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_float)

        initData()
    }

    private fun initData() {
        for (i in 0..100) {
            val textView = TextView(this)
            textView.text = i.toString()
            layout_container.addView(textView)
        }
    }
}
